<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div>
            <div class="row">
                <div class="creat-step-wrap clearfix">
                    <div class="col-sm-4 creat-step-current" data-step="0">
                        <div class="creat-step-bx">
                            <span class="vam fs24 c-4e"><i class="fa fa-hand-pointer-o"></i></span>
                            <div class="creat-step-txt">
                                <h5><span class="fs18 c-222">第一步：基本信息</span></h5>
                                <span class="fs14 c-999">模块的基本信息：名称、专业/科目、类型</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4" id="secondStep">
                        <div class="creat-step-bx">
                            <span class="vam fs24 c-4e"><i class="fa fa-hand-peace-o"></i></span>
                            <div class="creat-step-txt">
                                <h5><span class="fs18 c-222">第二步：描述信息</span></h5>
                                <span class="fs14 c-999">模块的内容：素材</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--第一步 开始-->
                <div class="pt10">
                    <div class="col-sm-9">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>填写基本信息</h5>
                            </div>
                            <input type="hidden" id="_subjectIds" th:value="${mould['subjectIds']}"/>
                            <form id="mouldStepOne">
                                <input type="hidden" name="id" th:value="${mould['id']}">
                                <div class="ibox-content clearfix pt10">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 模块名称</label>
                                            <div class="col-sm-8">
                                                <input class="form-control validate-data" type="text" name="mouldName" th:value="${mould['mouldName']}">
                                                <span class="help-block m-b-none c-999">模块名称 限30个字符以内</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <input type="hidden" name="subjectIds" id="subjectIds" th:value="${mould['subjectIds']}"/>
                                            <label class="col-sm-2 control-label"><i class="c-red">*</i> 专业</label>
                                            <div class="col-sm-8">
                                                <div id="course-open-subject-box"></div>
                                                <div id="course-open-subject-context"></div>
                                                <span class="help-block m-b-none c-999">选择或新建所属专业</span>
                                            </div>
                                            <div class="col-sm-2 mt10"><a href="javascript:void(0)" onclick="getRedirectMenu(baseloaction+'/admin/manage/subject/toSubjectList')"><i class="fa fa-plus"></i> 新建专业</a></div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"> 预估素材数</label>
                                            <div class="col-sm-8">
                                                <div class="input-group m-b">
                                                    <span class="input-group-addon"><i class="fa fa-question"></i></span>
                                                    <input class="form-control" type="text" name="materialNum" maxlength="4" th:value="${#strings.isEmpty(mould['materialNum'])}?'0':${mould['materialNum']}"/>
                                                    <span class="input-group-addon">节</span>
                                                </div>
                                                <span class="help-block m-b-none c-999"> 只允许填写正整数</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 模块类型</label>
                                            <div class="col-sm-8">
                                                <div class="input-group" style="width: 100%">
                                                    <select data-placeholder="选择模块类型..." class="chosen-select-no-search validate-data" style="width: 100%;" tabindex="2" name="mouldType">
                                                        <option value="1" th:selected="${mould['mouldType']}==1">公共模块</option>
                                                        <option value="2" th:selected="${mould['mouldType']}==2">私有模块</option>
                                                    </select>
                                                </div>
                                                <span class="help-block m-b-none c-999">选择模块类型。<span style="color: red">私有模块将会与当前登录帐号绑定且仅限当前帐号使用</span> </span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-10 col-sm-offset-2">
                                                <button class="btn btn-primary" type="button" id="saveReturn" data-type="1">保存，返回</button>
                                                <button class="btn btn-primary ml10" type="button" id="saveNext" data-type="2">保存，下一步</button>
                                                <button class="btn btn-white ml10" type="button" id="saveCancel">取消</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div data-th-replace="common/importantNotes"></div>
                </div>
                <!--第一步 结束-->
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/admin/business/course/mould/save_mould.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>

